package com.ccx.demo.config.init;

import com.ccx.demo.business.user.vo.Authority;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 权限配置信息
 *
 * @author 谢长春 2021-05-15
 */
@Component
@Getter
@Setter
@Slf4j
@ToString
@ConfigurationProperties(prefix = "authority")
public class AuthorityConfig {
    /**
     * application.yml 配置的权限树
     * spring.app.authorityTree
     */
    private List<Authority> tree;

}
